package com.igeek.javase.ch02;

import java.util.Scanner;

/*
 *@author wangpeng
 *2023/7/11 11:22
 *@description TODO
 */
public class IFDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数字：");
        int a = sc.nextInt();
        System.out.println("请输入第二个数字");
        int b = sc.nextInt();
        System.out.println("a=" +a);
        System.out.println("b=" +b);

        if(a> b) {
            System.out.println("Max = " + a);
        }else{
            System.out.println("Max = "+b);
        }
    }
}
